#include "fifo.hpp"
int main()
{
    Fifo MCfifo(MyFifoPath, Creater);
    if (MCfifo.OpenForRead())
    {
        std::string message;
        while (true)
        {
            int n = MCfifo.ReadFifo(&message);
            if (n > 0)
                std::cout << "message:" << message << std::endl;
            else if (n == 0)
            {
                std::cout << "写端不写了，哥们也不需要读了" << std::endl;
                break;
            }
            else
            {
                std::cout << "读端的代码有问题" << std::endl;
                break;
            }
        }
    }
}